import request from '@/utils/request'

// 查询费用分摊规则列表
export function listFundFeeSharingRule(query) {
  return request({
    url: '/fund/fundFeeSharingRule/list',
    method: 'get',
    params: query
  })
}

// 查询费用分摊规则列表
export function getData(query) {
  return request({
    url: '/fund/fundFeeSharingRule/getData',
    method: 'get',
    params: query
  })
}

// 查询费用分摊规则详细
export function getFundFeeSharingRule(id) {
  return request({
    url: '/fund/fundFeeSharingRule/' + id,
    method: 'get'
  })
}

// 保存费用分摊规则
export function saveFundFeeSharingRule(data) {
  return request({
    url: '/fund/fundFeeSharingRule/save',
    method: 'post',
    data: data
  })
}

// 删除费用分摊规则
export function delFundFeeSharingRule(id) {
  return request({
    url: '/fund/fundFeeSharingRule/' + id,
    method: 'delete'
  })
}

// 导出费用分摊规则
export function exportFundFeeSharingRule(query) {
  return request({
    url: '/fund/fundFeeSharingRule/export',
    method: 'get',
    params: query
  })
}
